<?php

namespace app\service\admin;

use app\db\admin\D_commendModuleData;

class S_commendModuleData
{
    public $d_commendModuleData;

    public function __construct()
    {
        $this->d_commendModuleData = new D_commendModuleData();
    }

    /**
     * 获取数据推荐信息
     * @param string $paramObj
     * @return array
     */
    public function getLevelData($paramObj=""){
        return $this->d_commendModuleData->getLevelData($paramObj);
    }

    /**
     * 获取数据
     * @param string $paramObj
     * @return array
     */
    public function getData($paramObj=""){
        return $this->d_commendModuleData->getData($paramObj);
    }

    /**
     * 获取推荐数据
     * @param string $paramObj
     * @return array
     */
    public function getCommendData($paramObj=""){
        return $this->d_commendModuleData->getCommendData($paramObj);
    }

    /**
     * 记录数据
     * @param string $paramObj
     * @return array
     */
    public function record($paramObj=""){
        return $this->d_commendModuleData->record($paramObj);
    }

    /**
     * 删除数据
     * @param string $paramObj
     * @return array
     */
    public function delete($paramObj=""){
        return $this->d_commendModuleData->delete($paramObj);
    }

    public function __call($name,$arguments)
    {
        return recordLogMsgLevelTwo(app("errorLevel")::E_WARNING,app("errorCode")::UNDEFINED_METHOD,lang("sys.noMethodDefined"),$name,$arguments);
    }
}